﻿using SilverlightClientApp.Manager;

namespace SilverlightClientApp.viewModel
{
    internal class ViewModel
    {
        private readonly CustomerManager _manager;

        public ViewModel()
        {
            _manager = new CustomerManager();
        }

        public void GetData(int value)
        {
            _manager.LoadCustomer(value);
        }

        public string CustomerName
        {
            get { return _manager.CustomerName; }
        }
    }
}